<!DOCTYPE html>
<html>
  <head>
    <title>js.js Demos</title>
    <link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet" >
  </head>
  <body>
    <a href="https://github.com/jterrace/js.js">
      <img style="position: absolute; top: 0; right: 0; border: 0;"
           src="https://a248.e.akamai.net/assets.github.com/img/30f550e0d38ceb6ef5b81500c64d970b7fb0f028/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67"
           alt="Fork me on GitHub">
    </a>
    <div class="container">
      <div class="page-header">
          <h1>js.js <small>A JavaScript JavaScript interpreter</small></h1>
      </div>
      <p>js.js is a JavaScript interpreter (which runs in JavaScript) that allows an application to
      execute a third-party script inside a completely isolated, sandboxed environment. An
      application can, at runtime, create and interact with the objects, properties, and methods
      available from within the sandboxed  environment, giving it complete control over the
      third-party script. js.js supports the full range of the JavaScript language, is compatible
      with major browsers, and is resilient to attacks from malicious scripts.</p>
      
      <h2>Demos</h2>
      <ul>
        <li><a href="simple-exec/">Simple Execution</a> - a simple execution of 1+1</li>
        <li><a href="native-func">Native Function</a> - calls a native JavaScript function from sandbox</li>
        <li><a href="callbacks/">Advanced Callbacks</a> - two-way communication between sandbox and native space</li>
        <li><a href="fib/">Fibonacci</a> - using js.js to calculate fibonacci numbers</li>
        <li><a href="twitter/">Twitter Button</a> - executing the twitter tweet button inside js.js</li>
      </ul>
      
      <h2>Benchmarks</h2>
      <ul>
        <li><a href="library-benchmark/">Library Benchmark</a> - a microbenchmark for each js.js API call</li>
        <li><a href="sunspider/">Sunspider Benchmark</a> - a macrobenchmark that runs 26 SunSpider benchmarks</li>
      </ul>
    </div>
  </body>
</html>
